part of '../index.dart';

class OnlineStatus extends StatelessWidget {
  const OnlineStatus(this.isOnline, {super.key});
  final bool isOnline;

  @override
  Widget build(BuildContext context) {
    return Row(
      crossAxisAlignment: CrossAxisAlignment.center,
      mainAxisAlignment: MainAxisAlignment.center,
      children: [
        Icon(
          Icons.circle,
          size: 6,
          color: isOnline ? const Color(0xFF6EE776) : Colors.red,
        ),
        const SizedBox(width: 4),
        Text(
          isOnline ? T.current.c_online : 'Off Line',
          style: const TextStyle(color: Color(0xFFA8A8A8), fontSize: 11),
        ),
      ],
    );
  }
}
